package com.guslegend.spzx.manager.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: guslegend
 * @description:
 * @create: 2025-05-09 07:41
 **/
@Mapper
public interface SysRoleUserMapper {

    // 添加关联关系
    public abstract void doAssign(@Param("userId") Long userId,
                                  @Param("roleId") Long roleId);

    // 根据用户的id删除数据
    public abstract void deleteByUserId(Long userId);

    public abstract List<Long> findSysUserRoleByUserId(Long userId);
}